#ifndef _LIB_DCE_H_
#define _LIB_DCE_H_

#ifdef  __cplusplus
extern "C" {
#endif

int  gen_passkey(unsigned char *passwd, unsigned char *keyout, char *userid, int inbufmaxlen);
long init_key(unsigned char *passwd, int passwd_len, unsigned char *datakey, int datakey_len);
int  decrypt(long key, unsigned char *cipher, int cipher_len, unsigned char *msg, int *msg_len);

#ifdef  __cplusplus
}
#endif

#endif
